package cn.wikiflyer.beikang;

import android.util.DisplayMetrics;
import cn.wk.libs4a.WKBaseActivity;



public abstract class BaseActivity extends WKBaseActivity {
	

	protected int height;
	protected int width;
	
	/**
	 * 获取全局APP
	 */
	public IApplication app() {
		return (IApplication) super.getApplication();
	}

	/**获取屏幕尺寸
	 */
	protected void initSize() {
		DisplayMetrics mDisplayMetrics = new DisplayMetrics();
		getWindowManager().getDefaultDisplay().getMetrics(mDisplayMetrics);
		width = mDisplayMetrics.widthPixels;
		height = mDisplayMetrics.heightPixels;
	}
}
